﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A31 RID: 2609
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LeaveRogueScRsp : IMessage<LeaveRogueScRsp>, IMessage, IEquatable<LeaveRogueScRsp>, IDeepCloneable<LeaveRogueScRsp>, IBufferMessage
	{
		// Token: 0x170020ED RID: 8429
		// (get) Token: 0x060074CD RID: 29901 RVA: 0x00137C57 File Offset: 0x00135E57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LeaveRogueScRsp> Parser
		{
			get
			{
				return LeaveRogueScRsp._parser;
			}
		}

		// Token: 0x170020EE RID: 8430
		// (get) Token: 0x060074CE RID: 29902 RVA: 0x00137C5E File Offset: 0x00135E5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LeaveRogueScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170020EF RID: 8431
		// (get) Token: 0x060074CF RID: 29903 RVA: 0x00137C70 File Offset: 0x00135E70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LeaveRogueScRsp.Descriptor;
			}
		}

		// Token: 0x060074D0 RID: 29904 RVA: 0x00137C77 File Offset: 0x00135E77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveRogueScRsp()
		{
		}

		// Token: 0x060074D1 RID: 29905 RVA: 0x00137C80 File Offset: 0x00135E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveRogueScRsp(LeaveRogueScRsp other) : this()
		{
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.rotateInfo_ = ((other.rotateInfo_ != null) ? other.rotateInfo_.Clone() : null);
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.rogueGameInfo_ = ((other.rogueGameInfo_ != null) ? other.rogueGameInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060074D2 RID: 29906 RVA: 0x00137D20 File Offset: 0x00135F20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveRogueScRsp Clone()
		{
			return new LeaveRogueScRsp(this);
		}

		// Token: 0x170020F0 RID: 8432
		// (get) Token: 0x060074D3 RID: 29907 RVA: 0x00137D28 File Offset: 0x00135F28
		// (set) Token: 0x060074D4 RID: 29908 RVA: 0x00137D30 File Offset: 0x00135F30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x170020F1 RID: 8433
		// (get) Token: 0x060074D5 RID: 29909 RVA: 0x00137D39 File Offset: 0x00135F39
		// (set) Token: 0x060074D6 RID: 29910 RVA: 0x00137D41 File Offset: 0x00135F41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo RotateInfo
		{
			get
			{
				return this.rotateInfo_;
			}
			set
			{
				this.rotateInfo_ = value;
			}
		}

		// Token: 0x170020F2 RID: 8434
		// (get) Token: 0x060074D7 RID: 29911 RVA: 0x00137D4A File Offset: 0x00135F4A
		// (set) Token: 0x060074D8 RID: 29912 RVA: 0x00137D52 File Offset: 0x00135F52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x170020F3 RID: 8435
		// (get) Token: 0x060074D9 RID: 29913 RVA: 0x00137D5B File Offset: 0x00135F5B
		// (set) Token: 0x060074DA RID: 29914 RVA: 0x00137D63 File Offset: 0x00135F63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170020F4 RID: 8436
		// (get) Token: 0x060074DB RID: 29915 RVA: 0x00137D6C File Offset: 0x00135F6C
		// (set) Token: 0x060074DC RID: 29916 RVA: 0x00137D74 File Offset: 0x00135F74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueInfo RogueGameInfo
		{
			get
			{
				return this.rogueGameInfo_;
			}
			set
			{
				this.rogueGameInfo_ = value;
			}
		}

		// Token: 0x060074DD RID: 29917 RVA: 0x00137D7D File Offset: 0x00135F7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LeaveRogueScRsp);
		}

		// Token: 0x060074DE RID: 29918 RVA: 0x00137D8C File Offset: 0x00135F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LeaveRogueScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Lineup, other.Lineup) && object.Equals(this.RotateInfo, other.RotateInfo) && object.Equals(this.Scene, other.Scene) && this.Retcode == other.Retcode && object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060074DF RID: 29919 RVA: 0x00137E1C File Offset: 0x0013601C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this.rotateInfo_ != null)
			{
				num ^= this.RotateInfo.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueGameInfo_ != null)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060074E0 RID: 29920 RVA: 0x00137EB3 File Offset: 0x001360B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060074E1 RID: 29921 RVA: 0x00137EBB File Offset: 0x001360BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060074E2 RID: 29922 RVA: 0x00137EC4 File Offset: 0x001360C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.Scene);
			}
			if (this.rogueGameInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this.rotateInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.RotateInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Lineup);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060074E3 RID: 29923 RVA: 0x00137F74 File Offset: 0x00136174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this.rotateInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RotateInfo);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060074E4 RID: 29924 RVA: 0x00138014 File Offset: 0x00136214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LeaveRogueScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			if (other.rotateInfo_ != null)
			{
				if (this.rotateInfo_ == null)
				{
					this.RotateInfo = new RogueMapRotateInfo();
				}
				this.RotateInfo.MergeFrom(other.RotateInfo);
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueGameInfo_ != null)
			{
				if (this.rogueGameInfo_ == null)
				{
					this.RogueGameInfo = new RogueInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060074E5 RID: 29925 RVA: 0x00138100 File Offset: 0x00136300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060074E6 RID: 29926 RVA: 0x0013810C File Offset: 0x0013630C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 18U)
				{
					if (num == 10U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
					if (num == 18U)
					{
						if (this.rogueGameInfo_ == null)
						{
							this.RogueGameInfo = new RogueInfo();
						}
						input.ReadMessage(this.RogueGameInfo);
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						if (this.rotateInfo_ == null)
						{
							this.RotateInfo = new RogueMapRotateInfo();
						}
						input.ReadMessage(this.RotateInfo);
						continue;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 114U)
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002C89 RID: 11401
		private static readonly MessageParser<LeaveRogueScRsp> _parser = new MessageParser<LeaveRogueScRsp>(() => new LeaveRogueScRsp());

		// Token: 0x04002C8A RID: 11402
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002C8B RID: 11403
		public const int LineupFieldNumber = 14;

		// Token: 0x04002C8C RID: 11404
		private LineupInfo lineup_;

		// Token: 0x04002C8D RID: 11405
		public const int RotateInfoFieldNumber = 8;

		// Token: 0x04002C8E RID: 11406
		private RogueMapRotateInfo rotateInfo_;

		// Token: 0x04002C8F RID: 11407
		public const int SceneFieldNumber = 1;

		// Token: 0x04002C90 RID: 11408
		private SceneInfo scene_;

		// Token: 0x04002C91 RID: 11409
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04002C92 RID: 11410
		private uint retcode_;

		// Token: 0x04002C93 RID: 11411
		public const int RogueGameInfoFieldNumber = 2;

		// Token: 0x04002C94 RID: 11412
		private RogueInfo rogueGameInfo_;
	}
}
